<?php
$CI =& get_instance();

$CI->load->database();
$CI->load->library("front/header_lib");
$CI->load->model('register_model');

$page_title =  "Make a payment";

$query_pages = $CI->db->get_where('bur_staticpages',array('staticpage_link'=>'make_payment'));

foreach($query_pages->result() as $row_vals)
{
     $title = $row_vals->staticpage_title;
	$metakey_page = $row_vals->staticpage_metakey;
    $metadesc_page = $row_vals->staticpage_metadesc;
}

$datas = array();

$CI->header_lib->display_header_element(array("script"=>array("jquery-1.4.2","jquery.validate"),"page_title"=>$title,"metakey_page"=>$metakey_page,"metadesc_page"=>$metadesc_page));
$CI->header_lib->display_header($datas);


?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<style>
.list_div01{
width: 144px !important;    
}

</style>
<!--body content starts-->

<div id="container_wrapper">

    	<div class="left_part">

        <?php $this->load->view(TEMPLATE_NAME.'/front/register/side_left'); ?>   

        </div>

        <div class="right_part">
            <?php
            $attributes =  array('id'=>'signupform', 'name' => 'signupform');
            echo form_open("register/packages",$attributes);?>
            <div class="requrest_quote">
            	
            <p><strong>Easy Payment Options:<br />
We Accept Visa , Master Card, and EFT </strong>(pay with your checking account)<br />
<strong>By Mail</strong>: Please add 20.00 for processing<br />
Cashier checks or Money Order <br />
Please make all Money Orders and Cashier checks to <strong>MITSS Group</strong> and include your email address on all correspondences.
</p>
        <h1 class="heading01">Select Package </h1>
                    <p class="redTxt">Simply select  package below and submit.</p>
            <ul>
            	<li>
                <div class="list_div01">&nbsp;</div>
                <div class="list_div02">
                        
                        <?php /*if($this->session->flashdata('package_error'))
                        {
                            echo '<div class="error">Please select your desired package.</div>';
                        }*/
                            
                        ?>
                    
                </div>
                <div class="clear"></div>
                </li>

                <li>
                  <h2 class="purple">Premier Ads (Diamond Membership)</h2> 
              <br />
              <strong>Premier Ads (Front Page Thumbnail) 
</strong><br />              
            	<div class="list_div01">
                     <img title="Diamond Membership" src="<?php echo site_url('xhtml/img/ads_green.jpg');?>" />
                     </div>
                    <div class="list_div02">
                                                                          
                        &#8226;Get maximum exposure by placing your ad on the front page                        
                        <br/>
                        &#8226;	You can select up to 4 pictures to rotate on the front page
                         <br/>
                        &#8226;Have full access to your account to make updates to your contact information and or
                        pictures.
                         <br/> <br/>
                        <?php 
                        $platinum_offers = $CI->register_model->get_package_offers('premium_ads');
                        $platinum_offers_special = $CI->register_model->check_package_offers_special('premium_ads');
                        if($platinum_offers_special)
                       // echo "Launch Sale Special:<br/>";
                        foreach($platinum_offers as $key=>$platinum_offer) :
                        if($platinum_offer->special==1 ){
                        ?>
                    <span class="purple">
                    
                    <input name="package" type="radio" value="<?php echo $platinum_offer->id;?>" /><?php echo $platinum_offer->offer_name;?> (<?php if($platinum_offer->cost == 0) echo 'FREE'; else echo $platinum_offer->currency_type.'&nbsp;'.$platinum_offer->cost;?>)
                    (Limited time)<br/>
                    </span>
                	
                        <?php 
                       }else{?>
                        
                        <input name="package" type="radio" value="<?php echo $platinum_offer->id;?>" /><?php echo $platinum_offer->offer_name;?> (<?php if($platinum_offer->cost == 0) echo 'FREE'; else echo $platinum_offer->currency_type.'&nbsp;'.$platinum_offer->cost;?>)<br />
                      <?php }
                         endforeach; ?>
                    <br/>  
                                 
&#8226;Above prices will be for a front page thumbnail (with changing pictures)
<br/>
&#8226;	full page ad with up to 8 pictures,
 <br/>
&#8226;	1 category (each additional category will be 20.00 extra per category) ,
 <br/>
&#8226;	Personal bio, links, and contact information.
 <br/>
&#8226;	Unlimited access and updates to your ad through your Ad Management Account<br/><br/>

</div>
    <div class="height10_10"></div>
              <h2 class="purple">Standard Ads (Independent listings)</p></h2>

<strong>Standard Ad package:</strong><br/>
                    <div class="list_div01">
                    <br />
                     <img title="Diamond Membership" src="<?php echo site_url('xhtml/img/ads_silver.jpg');?>" />
                     </div>
                    <div class="list_div02">
                    	<?php
                        $silver_offers = $CI->register_model->get_package_offers('standard_ads');
                        $silver_offers_special = $CI->register_model->check_package_offers_special('standard_ads');
                        if($silver_offers_special)
                        //echo "Launch Sale Special:<br/>";
                        foreach($silver_offers as $silver_offer) :
                        if($silver_offer->special==1 ){ 
                        ?>
                    <span class="purple">
                    
                   	<input name="package" type="radio" value="<?php echo $silver_offer->id;?>" /><?php echo $silver_offer->offer_name;?> (<?php if($silver_offer->cost == 0) echo 'FREE'; else echo $silver_offer->currency_type.'&nbsp;'.$silver_offer->cost;?>)
                    (Limited time)<br/>
                    </span>
                	
                        <?php 
                       }else{?>
                        
                       <input name="package" type="radio" value="<?php echo $silver_offer->id;?>" /><?php echo $silver_offer->offer_name;?> (<?php if($silver_offer->cost == 0) echo 'FREE'; else echo $silver_offer->currency_type.'&nbsp;'.$silver_offer->cost;?>)<br/>
                      <?php }
                         endforeach;
                       ?>
                     
                        <br/><br/>

&#8226;Personal Ad management account<br/>
&#8226;	1 Full page ad in 1 category and 1 location<br/>
&#8226;	up to 8 pictures<br/>
&#8226;	Bio, contact information, and direct link to your personal WebPages<br/>
&#8226;Unlimited access and updates to your ad through your Ad Management Account <br/>
                      
                    </div>
                   <div class="clear"></div> 
                   
                </li>
                
              
                <div class="height10_10"></div>
                  <li>
               <h2 class="purple">Gold Membership</h2>
      <strong>Agency Ad Package</strong> (two or more advertisers with the same phone number). Your Ads will be displayed on Special Ads section on the front page<br/><br/>
                    <div class="list_div01">
                     <img title="Diamond Membership" src="<?php echo site_url('xhtml/img/ads_gold.jpg');?>" />
                    </div>
                    <div class="list_div02">
                    	<?php
                        $gold_offers = $CI->register_model->get_package_offers('featured_ads');
                        
                        $gold_offers_special = $CI->register_model->check_package_offers_special('featured_ads');
                        if($gold_offers_special)
                        echo "Launch Sale Special:<br/>";
                        foreach($gold_offers as $gold_offers) :
                        if($gold_offers->special==1 ){
                        ?>
                    <span class="purple">
                    
                   	<input name="package" type="radio" value="<?php echo $gold_offers->id;?>" /><?php echo $gold_offers->offer_name;?> (<?php if($gold_offers->cost == 0) echo 'FREE'; else echo $gold_offers->currency_type.'&nbsp;'.$gold_offers->cost;?>)
                    (Launch Sale)<br/>
                    </span>
                	
                        <?php 
                       }else{?>
                        
                       	<input name="package" type="radio" value="<?php echo $gold_offers->id;?>" /><?php echo $gold_offers->offer_name;?> (<?php if($gold_offers->cost == 0) echo 'FREE'; else echo $gold_offers->currency_type.'&nbsp;'.$gold_offers->cost;?>)<br/>
                      <?php }
                         endforeach; ?>
                       
                    </div>
                 <div class="list_div02"><br/>
                <strong>Agency Ad package:</strong><br>
&#8226;Personal Ad management account <br/>
&#8226;	10 separate and Full ad pages in 1 category and 1 location (listed under you primary account <br/>
&#8226;	up to 8 pictures per page <br/>
&#8226;	Bio, contact information, and direct link to your personal WebPages <br/>
&#8226;	Unlimited access and updates to your ad through your Ad Management Account  <br/>
&#8226;	Auto refresh/update to the top of your category and location. <br/>
</div>
<div class="clear"></div> 
                </li> 
                 <li>
                  <h2 class="purple">Global Banner Ads:</h2> 
              
                <p><strong>Global ads</strong>-
                 Be seen on every page, Get maximum exposure thorough out the website.

                 Your banner ads will be seen on every page, these ads will be will be frozen throughout the website. Auto refreshes every hour to keep you to the top. </p><br>
                	<div class="list_div01">
                     <img title="Diamond Membership" src="<?php echo site_url('xhtml/img/ads_green.jpg');?>" />
                     </div>
                    <div class="list_div02">
                        <?php 
                        $platinum_offers = $CI->register_model->get_package_offers('global_ads');
                        $platinum_offers_special = $CI->register_model->check_package_offers_special('global_ads');
                        if($platinum_offers_special)
                        echo "Launch Sale Special:<br/>";
                        foreach($platinum_offers as $key=>$platinum_offer) :
                        if($platinum_offer->special==1 ){
                        ?>
                    <span class="purple">
                    
                    <input name="package" type="radio" class="banners " value="<?php echo $platinum_offer->id;?>" /><?php echo $platinum_offer->offer_name;?> (<?php if($platinum_offer->cost == 0) echo 'FREE'; else echo $platinum_offer->currency_type.'&nbsp;'.$platinum_offer->cost;?>)
                    (Launch Sale)<br/>
                    </span>
                	
                        <?php 
                       }else{?>
                        
                        <input name="package" class=" " type="radio"  value="<?php echo $platinum_offer->id;?>" /><?php echo $platinum_offer->offer_name;?> (<?php if($platinum_offer->cost == 0) echo 'FREE'; else echo $platinum_offer->currency_type.'&nbsp;'.$platinum_offer->cost;?>)<br />
                      <?php }
                         endforeach; ?>
                    </div>
                    <div class="list_div02"> <br/> 
                    <strong>Banner rules:</strong>             
&#8226;	Physical size: 120 x 60 pixels <br/>  
&#8226;	File size: under 20K <br/>  
&#8226;	No nudity (includes no bare breasts or buttocks, or simulating sexual acts); no exceptions <br/>  
&#8226;	4 Frames <br/>  
&#8226;	Banner text must not advertise or imply any illegal activity <br/>  
&#8226;No pop up ads <br/> 
    </div>
    <div class="clear"></div>  
                    <div class="clear"></div>
                  
                </li>               
               
                <li>
                <label for="package" class="error" style="display: none;margin: 0;">Please select your package</label>
                    <div class="list_div02">
                    	<input type="submit" value="submit" name="submit_pack" id="submit" src="<?php echo site_url('images/submit_btn.jpg');?>" height="57" width="378" style="border:1px solid #194C75" />
                    </div>
                    <div class="clear"></div>
                </li>
                </ul>
                </div>
            <?php echo form_close();?>

        </div>
       

 <?php $this->load->view(TEMPLATE_NAME.'/front/side_right'); ?>  
   <div class="clear"></div>
</div>
<!--body content ends-->
<?php
$CI->load->library("front/footer_lib");
$CI->footer_lib->display_footer();
?>
<script type="text/javascript">
$(document).ready(function(){//alert('test');
   
  
 $('#signupform').submit(function(){
   if ($("input[name='package']:checked").length > 0){
  // one ore more checkboxes are checked 
    $('.error').css('display', 'none');
    // $('.triggerval').change(function(){
 //alert($('#banners_val').val($(this).val()));  
    
  // });
    var banners = $("input[name='package']:checked").val();//alert(banners);
    if(banners < 6){
       
       var url = "<?php echo site_url('banners/payment_select/');?>"+'/'+banners;
       
       window.location= url;
       
       return false
       }
}
else{ $('.error').css('display', 'block'); return false;
 // no checkboxes are checked
}

 });
});
</script>
<?php
$CI->footer_lib->display_footer_element();

?>